package main

import (
	"interface_struck/interfaceDemo"
	"interface_struck/structDemo"
)

func main() {
	var p3 structDemo.Person
	p3.SayHello()

	p := structDemo.Person{Name: "LiLei"}
	p.SayHello()

	p1 := structDemo.Person{}
	p1.Name = "lili"
	p1.SayHello()

	//var person1 interfaceDemo.Person
	//person1.SayHello()

	is := interfaceDemo.InterfacePerson{}

	is.Name = "1"
	is.SayHello()

	interfaceDemo.SayHello("LELE")

	//var z interfaceDemo.Person
	z := interfaceDemo.Dog{Name: "11"}
	z.Say()

	var x interfaceDemo.Sayer
	var y interfaceDemo.Mover

	var a = interfaceDemo.Dog{Name: "旺财"}
	x = a
	y = a
	x.Say()
	y.Move()

}
